<template>
  <div id="user-info-header">
    <!-- 头像部分开始 -->
    <div class="avatar">
      <img src="https://pic.rmb.bdstatic.com/bjh/99818461a845ef36536d2dba905c64a5.jpeg" alt="" />
      <div class="nickname">
        <div class="name">@Python就找壹壹</div>
        <div class="score">
          <el-rate :value="3.4" disabled show-score text-color="#ff9900">
          </el-rate>
        </div>
        <div class="desc">人生苦短，我爱Python</div>
      </div>
    </div>
    <!-- 头像部分结束 -->
    <!-- 数据信息开始 -->
    <div class="data">
        <div class="item comment">
            <div class="title">评论数量</div>
            <div class="num">123</div>
        </div>
        <div class="item learn-time">
            <div class="title">学习时长</div>
            <div class="num">23小时34分钟</div>
        </div>
    </div>
    <!-- 数据信息结束 -->
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
#user-info-header {
  width: 100%;
  height: 260px;
  background: linear-gradient(to right, #409eff, #80befb, #52a6fa);
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
  align-items: center;
}

#user-info-header .avatar{
    width: 40%;
    display: flex;
    display: -webkit-flex;
    justify-content: start;
    margin-left: 7.5%;
}

#user-info-header .avatar img{
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

#user-info-header .avatar .nickname{
    margin-left: 20px;
    color: white;
}

#user-info-header .avatar .nickname .name{
    font-size: 25px;
    line-height: 25px;
}

#user-info-header .avatar .nickname .score{
    margin: 3px 0;
}

#user-info-header .avatar .nickname .desc{
    font-size: 14px;
    line-height: 14px;
}

#user-info-header .data{
    display: flex;
    display: -webkit-flex;
    background-color: #80808055;
    padding: 20px;
    border-radius: 5px;
    justify-content: space-between;
    margin-right: 7.5%;
}

#user-info-header .data .item{
    margin: 10px;
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
</style>